POV-Ray : Newsgroups : povray.advanced-users : Finding Pigment / color of an object : Re: Finding Pigment / color of an object Server Time
3 Jul 2024 05:47:52 EDT (-0400)
  Re: Finding Pigment / color of an object  
From: clipka
Date: 1 Mar 2009 09:50:00
Message: <web.49aaa0122533534f2ddf2a340@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote:
> The eval_pigment function can used to 'read' that colour from any pigment
> that you've assigned to an identifier.

Hum... I live and learn...

> > 2) What is the format of a pigment variable ? How can I extract each
> > component ?
>
> Pigments can be assigned to identifiers in the standard way. You can use
> eval_pigment to determine the colour at a specific location in the pigment.
> The color value returned by the eval_pigment function is a standard rgb
> colour value. You can index individual RGB colour components using the
> identifier suffixes red, green and blue. So something like:

.... and this likewise. So I bet there are .transmit and .filter suffixes
likewise?


> ps. It's more usual to see this sort of question on povray.newusers than on
> povray.advanced-users.

Hey, *I* didn't know these, and I wouldn't consider me a newbie these days ;)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.